package com.onlinevideo.service;

import com.onlinevideo.entity.Comment;
import com.onlinevideo.entity.User;

import java.util.List;

public interface CommentService {
    int insert(Comment comment);

    int delete(Long id);

    int update(Comment comment);

    Comment queryById(Long id);

    List<Comment> queryAll();

    List<Comment> queryByVideoId(Long id);

    Comment queryByCommonId(Long id);

    List<List<Comment>> queryForListByVideoId(Long id);

    List<Comment> queryByFatherIdS0(Long fatherId);

    List<Comment> queryByFatherIdS1(Long fatherId);

    List<Comment> queryByVideoIdS0(Long id);

    List<Comment> queryByVideoIdS1(Long id);

    Object[] addComment(Long fid, Long vid, User user,String content);

    List<Comment> queryAllS0();

    List<Comment> queryAllS1();
}
